/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ci.service.port;

import com.ci.model.impl.HDSerial;
import java.util.List;
import java.util.Map;
import javax.ejb.Local;

/**
 * @author Lang Yu
 * @description
 * @date Aug 31, 2010 10:05:27 AM
 * @version 1.0
 */
@Local
public interface HDSerialLocal{
    /**
     * 
     * @param serial
     * @return
     */
    public HDSerial create(HDSerial serial);
    /**
     * 针对所有数据的操作
     * @return
     */
    public List<HDSerial> getAll();

    /**
     * 针对Lazy加载的，目前不用
     * @param sortField
     * @param sortOrder
     * @param filter
     * @param pageIndex
     * @param pageSize
     * @return
     */
    public Map<Integer,List<HDSerial>> getAll(String sortField,boolean sortOrder,Map<String,String> filter,int pageIndex, int pageSize);
}
